package com.jg.service.impl;

import com.jg.model.entity.PurchaseOrderDetails;
import com.jg.mapper.PurchaseOrderDetailsMapper;
import com.jg.model.vo.OrderDetailVo;
import com.jg.service.PurchaseOrderDetailsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 采购明细表 记录每个采购订单的具体商品信息。 服务实现类
 * </p>
 *
 * @author 86130
 * @since 2025-09-19 11:21
 */
@Service
public class PurchaseOrderDetailsServiceImpl extends ServiceImpl<PurchaseOrderDetailsMapper, PurchaseOrderDetails> implements PurchaseOrderDetailsService {
    @Autowired
    private PurchaseOrderDetailsMapper purchaseOrderDetailsMapper;

    @Override
    public List<OrderDetailVo> selectOrderDetails(String orderId, Integer supplierId) {
        return purchaseOrderDetailsMapper.selectOrderDetails(orderId, supplierId);
    }
}
